package com.java.boot.admin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.java.boot.admin.bean.Department;
import com.java.boot.admin.mapper.DepartmentMapper;
import com.java.boot.admin.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author jingjintao
 * @date 2021/7/30 - 23:43
 **/
@Service
public class DepartmentServiceImpl implements DepartmentService {

    @Autowired
    private DepartmentMapper departmentMapper;

    public Department getDept(Integer id){
        return departmentMapper.findDeptById(id);
    }
}
